package server;
// ServerResponse.java
// Data structure class
// Holds data relevant to a server response
// Used by Client and Server

import java.awt.Point;
//import java.io.Serializable;

public class ServerResponse //implements Serializable
{
	private int id = -1;
	private int score = 0;
	private int x = 0;
	private int y = 0;
	private Point[] playerPositions;
	private Point[] itemPositions;
	private boolean loggedIn = true;

	public ServerResponse(int pid, int pScore, int pXPos, int pYPos, Point[] players, Point[] items)
	{
		id = pid;
		score = pScore;
		x = pXPos;
		y = pYPos;
		playerPositions = players;
		itemPositions = items;
	}

	public ServerResponse(int pid)
	{
		id = pid;
	}

	public boolean getLoggedIn()
	{
		return loggedIn;
	}

	public int getID()
	{
		return id;
	}

	public void setID(int pid)
	{
		id = pid;
	}

	public int getScore()
	{
		return score;
	}

	public int getX()
	{
		return x;
	}

	public int getY()
	{
		return y;
	}

	public Point[] getPlayerPositions()
	{
		return playerPositions;
	}

	public Point[] getItemPositions()
	{
		return itemPositions;
	}
}